package org.spi;

import java.util.List;

public class GetPaper {

    public static Paper gp(List<Paper> papers, int i) {
        Paper comment = new Paper();
        Papers comments = new Papers(papers);
        comment.setId(comments.findPaper(i).getId());
        comment.setTitle(comments.findPaper(i).getTitle());
        comment.setAuthor(comments.findPaper(i).getAuthor());
        comment.setDate(comments.findPaper(i).getDate());
        comment.setSummary(comments.findPaper(i).getSummary());
        comment.setLink(comments.findPaper(i).getLink());
        comment.setType(comments.findPaper(i).getType());
        return comment;
    }
}
